import { defineStore } from "pinia";
export const useCounterStore = defineStore("counter", {
  state: () => ({
    name: localStorage.getItem("name"),
  }),
  actions: {
    updateName(newname) {
      this.name = newname;
      localStorage.setItem("name", newname);
    },
  },
});
